package com.ruoyi.abuwx.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.abuwx.mapper.AbuwxUserFeedbackMapper;
import com.ruoyi.abuwx.domain.AbuwxUserFeedback;
import com.ruoyi.abuwx.service.IAbuwxUserFeedbackService;

/**
 * 用户反馈Service业务层处理
 * 
 * @author tang
 * @date 2022-07-02
 */
@Service
public class AbuwxUserFeedbackServiceImpl implements IAbuwxUserFeedbackService 
{
    @Autowired
    private AbuwxUserFeedbackMapper abuwxUserFeedbackMapper;

    /**
     * 查询用户反馈
     * 
     * @param id 用户反馈主键
     * @return 用户反馈
     */
    @Override
    public AbuwxUserFeedback selectAbuwxUserFeedbackById(Long id)
    {
        return abuwxUserFeedbackMapper.selectAbuwxUserFeedbackById(id);
    }

    /**
     * 查询用户反馈列表
     * 
     * @param abuwxUserFeedback 用户反馈
     * @return 用户反馈
     */
    @Override
    public List<AbuwxUserFeedback> selectAbuwxUserFeedbackList(AbuwxUserFeedback abuwxUserFeedback)
    {
        return abuwxUserFeedbackMapper.selectAbuwxUserFeedbackList(abuwxUserFeedback);
    }

    /**
     * 新增用户反馈
     * 
     * @param abuwxUserFeedback 用户反馈
     * @return 结果
     */
    @Override
    public int insertAbuwxUserFeedback(AbuwxUserFeedback abuwxUserFeedback)
    {
        abuwxUserFeedback.setCreateTime(DateUtils.getNowDate());
        return abuwxUserFeedbackMapper.insertAbuwxUserFeedback(abuwxUserFeedback);
    }

    /**
     * 修改用户反馈
     * 
     * @param abuwxUserFeedback 用户反馈
     * @return 结果
     */
    @Override
    public int updateAbuwxUserFeedback(AbuwxUserFeedback abuwxUserFeedback)
    {
        abuwxUserFeedback.setUpdateTime(DateUtils.getNowDate());
        return abuwxUserFeedbackMapper.updateAbuwxUserFeedback(abuwxUserFeedback);
    }

    /**
     * 批量删除用户反馈
     * 
     * @param ids 需要删除的用户反馈主键
     * @return 结果
     */
    @Override
    public int deleteAbuwxUserFeedbackByIds(Long[] ids)
    {
        return abuwxUserFeedbackMapper.deleteAbuwxUserFeedbackByIds(ids);
    }

    /**
     * 删除用户反馈信息
     * 
     * @param id 用户反馈主键
     * @return 结果
     */
    @Override
    public int deleteAbuwxUserFeedbackById(Long id)
    {
        return abuwxUserFeedbackMapper.deleteAbuwxUserFeedbackById(id);
    }
}
